﻿using SIG.Resources.Admin;
using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SIG.InputModel.Admin.Products
{
    public  class ProductIM
    {
        public int Id { get; set; }
        [Display(Name = "产品型号", Prompt = "产品型号")]
        [Required(ErrorMessage = "请输入产品型号")]
        public string ProductNo { get; set; }
        [Display(Name = "产品名称", Prompt = "产品名称")]
        [Required(ErrorMessage = "请输入产品名称")]
        public string ProductName { get; set; }


        [Display(Name = "产品描述", Prompt = "产品描述")]
        [AllowHtml]
        public string Body { get; set; }

        [Display(Name = "摘要", Prompt = "摘要")]
        public string Description { get; set; }


        [Display(Name = "缩略图", Prompt = "缩略图")]
        public string Thumbnail { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "ImageURL")]
        public string ImageUrl { get; set; }

        [Display(Name = "显示")]
        public bool Active { get; set; }
        [Display(Name = "推荐")]
        public bool Recommend { get; set; }

        public int ViewCount { get; set; }

        //public string CategoryIds { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Category")]
        public string[] PostCategoryIds { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Title")]
        public string Title { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "KeyWords")]
        public string Keywords { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Description")]
        public string SEODescription { get; set; }

       

    }
}
